#include<bits/stdc++.h>
using namespace std;
const int N = 10001;
int a[N];
int main()
{
	int ret = 0;
	int n;
	cin>>n;
	for(int i = 0;i<n;i++)
	{
		cin>>a[i];
	}
	int max = -1;
	for(int i = 0;i<n;i++)
	{
		if(a[i]>max)
		{
			ret++;
			max = a[i];
		}
	}
	cout<<ret;
	return 0;
}
